package sdiff.tests.other;

import java.io.FileReader;

import sdiff.tests.LdiffLineMappings;

import junit.framework.TestCase;

public class LdiffTest extends TestCase
{
    public void testReadLdiffResultsFromFile1()
    throws Exception
    {
        LdiffLineMappings ldiff=LdiffLineMappings.readFromReader(
                new FileReader("test-data/ldiff/ext-output-1.txt"));
        System.out.println(ldiff);
    }
    
    public void testReadLdiffResultsFromFile2()
    throws Exception
    {
        LdiffLineMappings ldiff=LdiffLineMappings.readFromReader(
                new FileReader("test-data/ldiff/ext-output-2.txt"));
        System.out.println(ldiff);
    }
    
    public void testRunLdiff()
    throws Exception
    {
        String leftFilename="/Users/jspacco/Documents/workspace/Wadi/limbodata/ResourceInfo_1.java";
        String rightFilename="/Users/jspacco/Documents/workspace/Wadi/limbodata/ResourceInfo_2.java";
        LdiffLineMappings run=new LdiffLineMappings();
        run.runLdiff(leftFilename, rightFilename);
        System.out.println(run);
    }
}
